export function digitSymbol(num) {
    const numStr = num.toString();
    const parts = numStr.split(".");
    parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    return parts.join(".");
  }
export function addTags(text) {
    return text.replace(/([,.])|(.)/g, (match, punctuation, char) => {
        if (punctuation === ',') {
            return '<p class="symbol">,</p>';
        } else if (punctuation === '.') {
            return '<p class="symbol">.</p>';
        } else if (char) {
            return `<div class='first'>${char}</div>`;
        }
    });
}
